<?php


namespace App\Models;


use Base\BaseModel;

class WannaModel extends BaseModel
{
    public function getWannaRow($where, $fields = '*')
    {
        return $this->baseSelectFirst($fields, $where);
    }

    public function insertWanna($data)
    {
        return $this->baseInsert($data);
    }

    public function getWannaCount($where)
    {
        return $this->baseSelectCount($where);
    }

    public function getWannaList($where, $fields = '*')
    {
        return $this->baseSelect($fields, $where);
    }
    public function updateWanna($where, $data = [])
    {
        return $this->baseUpdate($where, $data);
    }
}
